.class Lcom/netease/newsreader/activity/DetailPage$20;
.super Ljava/lang/Object;
.source "DetailPage.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/activity/DetailPage;->findViewById()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/DetailPage;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/DetailPage;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    .line 568
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 8
    .parameter "v"

    .prologue
    const v7, 0x7f020015

    const/4 v6, 0x1

    const/4 v5, 0x0

    .line 571
    iget-object v1, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    new-instance v2, Lcom/netease/newsreader/util/CollectUtil;

    iget-object v3, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-direct {v2, v3}, Lcom/netease/newsreader/util/CollectUtil;-><init>(Landroid/content/Context;)V

    invoke-static {v1, v2}, Lcom/netease/newsreader/activity/DetailPage;->access$123(Lcom/netease/newsreader/activity/DetailPage;Lcom/netease/newsreader/util/CollectUtil;)V

    .line 572
    iget-object v1, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v1}, Lcom/netease/newsreader/activity/DetailPage;->access$124(Lcom/netease/newsreader/activity/DetailPage;)I

    move-result v1

    const/4 v2, -0x1

    if-eq v1, v2, :cond_0

    .line 573
    iget-object v1, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v1}, Lcom/netease/newsreader/activity/DetailPage;->access$104(Lcom/netease/newsreader/activity/DetailPage;)Lcom/netease/newsreader/util/CollectUtil;

    move-result-object v1

    iget-object v2, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v2}, Lcom/netease/newsreader/activity/DetailPage;->access$124(Lcom/netease/newsreader/activity/DetailPage;)I

    move-result v2

    invoke-virtual {v1, v2, v6}, Lcom/netease/newsreader/util/CollectUtil;->deleteAlreadyCollect(II)I

    .line 574
    iget-object v1, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    iget-object v2, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-virtual {v2}, Lcom/netease/newsreader/activity/DetailPage;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0b0022

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    .line 575
    iget-object v1, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v1}, Lcom/netease/newsreader/activity/DetailPage;->access$108(Lcom/netease/newsreader/activity/DetailPage;)Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v1

    iget-object v2, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v2}, Lcom/netease/newsreader/activity/DetailPage;->access$109(Lcom/netease/newsreader/activity/DetailPage;)Landroid/content/Context;

    move-result-object v2

    iget-object v3, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v3}, Lcom/netease/newsreader/activity/DetailPage;->access$125(Lcom/netease/newsreader/activity/DetailPage;)Landroid/widget/ImageButton;

    move-result-object v3

    invoke-virtual {v1, v2, v3, v7}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setImageViewSrc(Landroid/content/Context;Landroid/widget/ImageView;I)V

    .line 590
    :goto_0
    iget-object v1, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    iget-object v2, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v2}, Lcom/netease/newsreader/activity/DetailPage;->access$104(Lcom/netease/newsreader/activity/DetailPage;)Lcom/netease/newsreader/util/CollectUtil;

    move-result-object v2

    iget-object v3, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v3}, Lcom/netease/newsreader/activity/DetailPage;->access$128(Lcom/netease/newsreader/activity/DetailPage;)Ljava/lang/String;

    move-result-object v3

    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPage;->access$14(Lcom/netease/newsreader/activity/DetailPage;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4, v6}, Lcom/netease/newsreader/util/CollectUtil;->getAlreadyCollect(Ljava/lang/String;Ljava/lang/String;I)I

    move-result v2

    invoke-static {v1, v2}, Lcom/netease/newsreader/activity/DetailPage;->access$129(Lcom/netease/newsreader/activity/DetailPage;I)V

    .line 591
    return-void

    .line 577
    :cond_0
    iget-object v1, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v1}, Lcom/netease/newsreader/activity/DetailPage;->access$126(Lcom/netease/newsreader/activity/DetailPage;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 578
    iget-object v1, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v3}, Lcom/netease/newsreader/activity/DetailPage;->access$13(Lcom/netease/newsreader/activity/DetailPage;)Ljava/util/HashMap;

    move-result-object v3

    const-string v4, "title"

    invoke-virtual {v3, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/netease/newsreader/activity/DetailPage;->access$127(Lcom/netease/newsreader/activity/DetailPage;Ljava/lang/String;)V

    .line 580
    :cond_1
    iget-object v1, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v1}, Lcom/netease/newsreader/activity/DetailPage;->access$104(Lcom/netease/newsreader/activity/DetailPage;)Lcom/netease/newsreader/util/CollectUtil;

    move-result-object v1

    iget-object v2, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v2}, Lcom/netease/newsreader/activity/DetailPage;->access$128(Lcom/netease/newsreader/activity/DetailPage;)Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v3}, Lcom/netease/newsreader/activity/DetailPage;->access$126(Lcom/netease/newsreader/activity/DetailPage;)Ljava/lang/String;

    move-result-object v3

    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPage;->access$14(Lcom/netease/newsreader/activity/DetailPage;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v2, v3, v4, v6}, Lcom/netease/newsreader/util/CollectUtil;->doCollectObject(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/Long;

    move-result-object v0

    .line 582
    .local v0, flag:Ljava/lang/Long;
    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v1

    const-wide/16 v3, -0x1

    cmp-long v1, v1, v3

    if-nez v1, :cond_2

    .line 583
    iget-object v1, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    iget-object v2, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-virtual {v2}, Lcom/netease/newsreader/activity/DetailPage;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0b0024

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    .line 584
    iget-object v1, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v1}, Lcom/netease/newsreader/activity/DetailPage;->access$108(Lcom/netease/newsreader/activity/DetailPage;)Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v1

    iget-object v2, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v2}, Lcom/netease/newsreader/activity/DetailPage;->access$109(Lcom/netease/newsreader/activity/DetailPage;)Landroid/content/Context;

    move-result-object v2

    iget-object v3, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v3}, Lcom/netease/newsreader/activity/DetailPage;->access$125(Lcom/netease/newsreader/activity/DetailPage;)Landroid/widget/ImageButton;

    move-result-object v3

    invoke-virtual {v1, v2, v3, v7}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setImageViewSrc(Landroid/content/Context;Landroid/widget/ImageView;I)V

    goto/16 :goto_0

    .line 586
    :cond_2
    iget-object v1, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    iget-object v2, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-virtual {v2}, Lcom/netease/newsreader/activity/DetailPage;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0b0023

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    .line 587
    iget-object v1, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v1}, Lcom/netease/newsreader/activity/DetailPage;->access$108(Lcom/netease/newsreader/activity/DetailPage;)Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v1

    iget-object v2, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v2}, Lcom/netease/newsreader/activity/DetailPage;->access$109(Lcom/netease/newsreader/activity/DetailPage;)Landroid/content/Context;

    move-result-object v2

    iget-object v3, p0, Lcom/netease/newsreader/activity/DetailPage$20;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v3}, Lcom/netease/newsreader/activity/DetailPage;->access$125(Lcom/netease/newsreader/activity/DetailPage;)Landroid/widget/ImageButton;

    move-result-object v3

    const v4, 0x7f020018

    invoke-virtual {v1, v2, v3, v4}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setImageViewSrc(Landroid/content/Context;Landroid/widget/ImageView;I)V

    goto/16 :goto_0
.end method
